package com.jokins.admin.ios.user.service.impl;

import com.jokins.admin.ios.user.actioncontext.BookUserSignInDoc;
import com.jokins.admin.ios.user.param.BookUserSignInParam;
import com.jokins.admin.ios.user.service.BookUserSignInService;
import com.jokins.common.actions.action.ActionContext;
import com.jokins.common.actions.util.ActionDispatcher;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 〈〉<br>
 *
 * @author Mr.Wang
 * @create 2025/2/13
 */
@Slf4j
@Service
public class BookUserSignInServiceImpl implements BookUserSignInService {

    @Override
    public Map<String,Object> bookUserSignIn(BookUserSignInParam param) {
        BookUserSignInDoc doc = new BookUserSignInDoc(param);
        ActionDispatcher.execute(doc);
        return (Map<String, Object>) doc.getResultValue(ActionContext.RESULT_DOC_KEY);
    }
}